package com.woniuxy.dao;

import com.woniuxy.entity.RbacManager;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * @Author: 马宇航
 * @Description: 登录用的dao层
 * @DateTime: 22/05/23/0023 上午 10:35
 * @Component: 成都蜗牛学苑
 **/
public interface LoginAuthDao {
    RbacManager login(@Param("username") String username,@Param("password")  String password);

    RbacManager findByName(String username);

    Set<String> findRoles(String username);

    Set<String> findPermsByName(String username);
}
